//全局样式
$colors: (
  primary: #409eff,
  success: #67c23a,
  warning: #e6a23c,
  danger: #f56c6c,
  info: #909399,
  error: #e41717,
);

:root {
  @each $key, $color in $colors {
    --ct-color-#{$key}: #{$color};

    @for $i from 1 through 4 {
      --ct-color-#{$key}-light-#{2 * $i + 1}: #{mix(#fff, $color, ((2 * $i + 1) * 10 * 1%))};
    }
    --ct-color-#{$key}-light-8: #{mix(#fff, $color, 80%)};
    --ct-color-#{$key}-dark-2: #{mix(#000, $color, 20%)};
  }

  --ct-color-white: #fff;
  --ct-color-black: #000;

  --ct-bg-color: #ffffff;
  --ct-bg-color-page: #f2f3f5;
  --ct-bg-color-overlay: #eff0f2;

  --ct-text-color-primary: #303133;
  --ct-text-color-regular: #606266;
  --ct-text-color-secondary: #909399;
  --ct-text-color-placeholder: #a8abb2;
  --ct-text-color-disabled: #c0c4cc;

  --ct-border-color: #dcdfe6;
  --ct-border-color-lighter: #e4e7ed;
  --ct-border-color-dark: #d4d7de;

  --ct-fill-color: #f0f2f5;
  --ct-fill-color-light: #f5f7fa;
  --ct-fill-color-lighter: #fafafa;
  --ct-fill-color-extra-light: #fafcff;
  --ct-fill-color-dark: #ebedf0;
  --ct-fill-color-darker: #e6e8eb;
  --ct-fill-color-blank: #ffffff;

  --ct-border-width: 1px;
  --ct-border-style: solid;
  --ct-border-color-hover: var(--ct-text-color-disabled);
  --ct-border: var(--ct-border-width) var(--ct-border-style) var(--ct-border-color);
  --ct-border-radius-base: 4px;
  --ct-border-radius-small: 2px;
  --ct-border-radius-round: 20px;
  --ct-border-radius-circle: 100%;

  --ct-font-size-extra-large: 20px;
  --ct-font-size-large: 18px;
  --ct-font-size-medium: 16px;
  --ct-font-size-base: 14px;
  --ct-font-size-small: 13px;
  --ct-font-size-extra-small: 12px;
  --ct-font-weight-primary: 500;
  --ct-font-family:
    'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑',
    Arial, sans-serif;

  --ct-disabled-bg-color: var(--ct-fill-color-light);
  --ct-disabled-text-color: var(--ct-text-color-placeholder);
  --ct-disabled-border-color: var(--ct-border-color-light);

  --ct-box-shadow-base: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
  --ct-box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.12), 0 0 12px rgba(0, 0, 0, 0.04);
  --ct-box-shadow-lighter: 0 2px 12px rgba(0, 0, 0, 0.12), 0 0 12px rgba(0, 0, 0, 0.04);
  --ct-box-shadow-dark: 0 4px 12px rgba(0, 0, 0, 0.12), 0 0 12px rgba(0, 0, 0, 0.04);

  // 动画
  --ct-transition-duration: 0.3s;
  --ct-transition-duration-fast: 0.2s;
}
